﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TodoApp.ResultModel;
using TodoApp.TMS_SetUp.Menus;

namespace TodoApp.TMS_SetUp.Roles
{
    public interface ITMS_RoleRepository
    {
        Task<PageResponse<TMS_RoleDto>> GetRole(string name, int pageindex, int pagesize);
        Task<int> DeleteRole(string id);
        Task<int> UpdateRole(TMS_RoleDto tMS_Role);
        Task<int> CreateRole(TMS_Role tMS_Role);
        Task<List<TMS_Menus>> GetMenu();
        Task<ResponseModel<bool>> CreateMenu(string name, string ids);
    }
}
